package model.siw
{
	public class Rule
	{
		
		private var _id:String;
		
		private var _type;
		
		private var _service:Service;
		
		private var _op:OP;
		
		private var _et:ET;
		
		public function Rule()
		{
		}
		
		public function genXML():String{
			var xml:String="";
			xml+="<rule id=\""+_id+"\" type=\""+_type+"\">\n";
			xml+="\t"+_service.genXML();
			xml+="\t"+_op.genXML();
			xml+="\t"+_et.genXML();
			xml+="</rule>/n";
			return xml;
		}
		
		public function get id():String{
			return this._id;
		}
		
		public function set id(v:String){
			this._id=v;
		}
		
		public function get type():String{
			return this._type;
		}
		
		public function set type(v:String){
			this._type=v;
		}
		
		public function get service():Service{
			return this._service;
		}
		
		public function set service(v:Service){
			this._service=v;
		}
		
		public function get op():OP{
			return this._op;
		}
		
		public function set op(v:OP){
			this._op=v;
		}
		
		public function get et():ET{
			return this._et;
		}
		
		public function set et(v:ET){
			this._et=v;
		}

	}
}